package com.softcits.sp01.service;

import java.util.List;

import org.apache.commons.mail.EmailAttachment;

public class MailInfo {
    
    // 謾ｶ莉ｶ莠ｺ
    private List<String> toAddress = null;
    // 謚�騾∽ｺｺ蝨ｰ蝮�
    private List<String> ccAddress = null;
    // 蟇�騾∽ｺｺ
    private List<String> bccAddress = null;
    // 髯�莉ｶ菫｡諱ｯ
    private List<EmailAttachment> attachments = null;
    // 驍ｮ莉ｶ荳ｻ鬚�
    private String subject;
    // 驍ｮ莉ｶ逧�譁�譛ｬ蜀�螳ｹ
    private String content;


    public List<String> getToAddress() {
        return toAddress;
    }

    public void addToAddress(String toAddress) {
        this.toAddress.add(toAddress);
    }

    public void addToAddress(List<String> toAddress) {
        this.toAddress.addAll(toAddress);
    }

    public void addCcAddress(List<String> ccAddress) {
        if (null != ccAddress && ccAddress.size() > 0)
            this.ccAddress.addAll(ccAddress);
    }

    public List<EmailAttachment> getAttachments() {
        return attachments;
    }

    public void setAttachments(List<EmailAttachment> attachments) {
        this.attachments = attachments;
    }

    public List<String> getBccAddress() {
        return bccAddress;
    }

    public void setBccAddress(List<String> bccAddress) {
        this.bccAddress = bccAddress;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setToAddress(List<String> toAddress) {
        this.toAddress = toAddress;
    }

    public List<String> getCcAddress() {
        return ccAddress;
    }

    public void setCcAddress(List<String> ccAddress) {
        this.ccAddress = ccAddress;
    }

}